import { getRequest, postRequest, putRequest } from '../../utils/request'

export const requestTestCasePage = params => {
  return getRequest('/uiTestCase/listPage', params, false)
}

export const requestTestCaseByBusinessId = params => {
  return getRequest('/uiTestCase/listByBusinessId', params, false)
}

export const requestAddTestCase = params => {
  return postRequest('/uiTestCase/add', params)
}

export const requestUpdateTestCase = params => {
  return putRequest('/uiTestCase/edit', params)
}

export const requestDelTestCaseById = params => {
  return postRequest('/uiTestCase/remove', params)
}
